//
//  XMBaseSettingItem.m
//  XMWeibo
//
//  Created by chi on 14-9-1.
//  Copyright (c) 2014年 xiaoming. All rights reserved.
//

#import "XMBaseSettingItem.h"

@implementation XMBaseSettingItem


+(instancetype)cellItemWithTitle:(NSString *)title subTitle:(NSString *)subTitle icon:(NSString *)icon
{
    XMBaseSettingItem *item = [[self alloc]init];
    
    item.title = title;
    item.icon = icon;
    item.subtitle = subTitle;
    
    return item;
}


- (NSString *)key
{
    return _key == nil ? _title : _key;
}


@end
